package client;

import java.rmi.RemoteException;

import javax.xml.rpc.ServiceException;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;

public class Method_Tester {
	public static void main(String[] args) throws ServiceException,
			RemoteException {
		Service service = new Service();
		Call call = (Call) service.createCall();
		call
				.setTargetEndpointAddress("http://localhost:8080/axis/services/mobile");
		call.setOperationName("postScrap");
		Boolean ret = (Boolean) call.invoke(new Object[] { "Ivo", "Andre",
				"Ola mundo" });
		System.out.println("Operacao bem sucedida? " + ret);
	}
}
